<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div id="main">xxxxxxxx</div>
<script>
var main=document.getElementById('main');
main.onclick=function(e){
    //隐藏实参console.log(arguments[0]);
    console.log(e.target.nodeName);
}
// main.addEventListener('click',function(e){
//     console.log(e);
// },false)
</script>
</body>
</html>